#!/usr/bin/env python
'''
__author__=Yawei Yang
__date__ = July 3rd 2012
__doc__ =  Program 2-4 for chapter 2
'''


from control.matlab import *

num = [2,1,1,2]
den = [1,4,5,2]
sys = tf2ss(num,den)
print sys

#A = [[-4. -5. -2.]
# [ 1.  0.  0.]
# [ 0.  1.  0.]]
#
#B = [[ 1.]
# [ 0.]
# [ 0.]]
#
#C = [[-7. -9. -2.]]
#
#D = [[ 2.]]

